import request from '@/utils/request'



// 查询品牌信息列表
export function listInfobi(query) {
  return request({
    url: '/shopping/brandinfobi/listbi',
    method: 'get',
    params: query
  })
}

// 查询品牌信息详细
export function getInfobi(brandId) {
  return request({
    url: '/shopping/brandinfobi/' + brandId,
    method: 'get'
  })
}

// 新增品牌信息
export function addInfobi(data) {
  return request({
    url: '/shopping/brandinfobi',
    method: 'post',
    data: data
  })
}

// 修改品牌信息
export function updateInfobi(data) {
  return request({
    url: '/shopping/brandinfobi',
    method: 'put',
    data: data
  })
}

// 删除品牌信息
export function delInfobi(brandId) {
  return request({
    url: '/shopping/brandinfobi/' + brandId,
    method: 'delete'
  })
}

export function brandStatusbi(brandId, brandStatus) {
  const data = {
    brandId,
    brandStatus
  }
  return request({
    url: '/shopping/brandinfobi/editStatus',
    method: 'put',
    data: data
  })
}
